<?php
$wages = [
    "市场部" => [
        [1, "杨朝", "市场经理", 8800],
        [2, "王玲", "市场专员", 5800],
    ],
    "产品部" => [
        [1, "邓健", "产品经理", 9100],
        [2, "白伟", "产品专员", 6300],
    ],
    "财务部" => [
        [1, "曹晖", "账务经理", 7500],
        [2, "陈炳良", "账务专员", 4800],
        [3, "丁国华", "账务专员", 5000],
    ],
];
foreach ($wages as $bumen=>$persons) {
    echo $bumen, "部门人员如下：\n";
    foreach ($persons as $person) {
        //echo $person[0],"\t",$person[1],"\t",$person[2],"\t", $person[3], "\n";
        foreach ($person as $item) { //显示一个人，一人一行数据
            echo $item, "\t";
        }
        echo "\n"; //一个人数据显示完毕，应该换行
    }
}